package com.yc.thread.conpro;

/**
 * 生产者消费者测试模型
 */
public class Test {

    public static void main(String[] args) {
        Info info = new Info();
        Consumer consumer = new Consumer(info);
        Provider provider = new Provider(info);
        Thread threadConsumer = new Thread(consumer, "consumer");
        Thread threadProvider = new Thread(provider, "provider");
        threadProvider.start();
        threadConsumer.start();
    }
}
